/*
package org.bob.web.filter;

import lombok.extern.slf4j.Slf4j;
import org.bob.common.constant.HeaderEnum;
import org.springframework.http.HttpStatus;
import org.springframework.stereotype.Component;
import org.springframework.web.reactive.function.server.HandlerFunction;
import org.springframework.web.reactive.function.server.ServerRequest;
import org.springframework.web.reactive.function.server.ServerResponse;
import org.springframework.web.server.ServerWebExchange;
import org.springframework.web.server.WebFilter;
import org.springframework.web.server.WebFilterChain;
import reactor.core.publisher.Mono;

@Slf4j
@Component
public class MyFilter implements WebFilter {

    @Override
    public Mono filter(ServerRequest request, HandlerFunction next) {
        if (request.queryParam(HeaderEnum.Index.name()).isPresent() && request.queryParam(HeaderEnum.BizCode.name()).isPresent()) {
            return next.handle(request);
        } else {
            return ServerResponse.status(HttpStatus.BAD_REQUEST).build();
        }
    }

   */
/* @Override
    public Mono<Void> filter(ServerWebExchange exchange, WebFilterChain chain) {
        exchange.getRequest().
        log.info("Receive-Request[{}]", exchange.getRequest().getPath());
        if (filterConfig.getSkipUrls().contains(exchange.getRequest().getURI().getPath())) {
            log.info("Request[{}]跳过令牌认证");
            return chain.filter(exchange);
        }
        return null;
    }*//*

}
*/
